package com.uzykj.modules.front.dto;

import com.uzykj.core.persistence.DataEntity;
import com.uzykj.modules.blog.entity.BlogNote;
import com.uzykj.modules.sys.entity.User;

/**
 * @author ghostxbh
 * @date 2020/7/8
 * 评论
 */
public class ReviewDto extends DataEntity<ReviewDto> {

    private BlogNote note;

    private String contents;

    private User reviewer;

    private Integer support;

    private Integer against;

    public ReviewDto() {
    }

    public ReviewDto(String id) {
        super(id);
    }

    public BlogNote getNote() {
        return note;
    }

    public void setNote(BlogNote note) {
        this.note = note;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents == null ? null : contents.trim();
    }

    public User getReviewer() {
        return reviewer;
    }

    public void setReviewer(User reviewer) {
        this.reviewer = reviewer;
    }

    public Integer getSupport() {
        return support;
    }

    public void setSupport(Integer support) {
        this.support = support;
    }

    public Integer getAgainst() {
        return against;
    }

    public void setAgainst(Integer against) {
        this.against = against;
    }
}